<p><?= $this->Html->link("&laquo; nazad", "/ad_types", array( 'escape' => false ))?></p>
<?= $this->Form->create('AdType', array('url' => '/ad_types/save')) ?>

    <?= $this->Form->hidden('id', array( 'value' => (int)@$data['AdType']['id'])) ?>

    <p><?= $this->Form->label('name', 'Naziv:') ?>
    <?= $this->Form->text('name', array( 'value' => @$data['AdType']['name'])) ?>
    <?= $this->App->formError('name') ?></p>
    
    <p><?= $this->Form->label('price', 'Cena izrade:') ?>
    <?= $this->Form->text('price', array( 'value' => @$data['AdType']['price'], 'class'=>'price')) ?><?= CURRENCY_SYM ?>
    <?= $this->App->formError('price') ?>
    <?= $this->Form->label('unit', 'po', array('class'=>'auto')) ?>
    <?= $this->Form->select('unit', array(
        'kom' => 'kom',
        'm²'  => 'm²'
    ), array(
        'value' => @$data['AdType']['unit'],
        'empty' => false
    )) ?></p>
    
    <?= $this->Form->button('Sačuvaj') ?>
<?= $this->Form->end() ?>
